//
//  PrefixHeader.h
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/7/29.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#ifndef PrefixHeader_h
#define PrefixHeader_h


#import <Masonry/Masonry.h>
#import <AFNetworking/AFNetworking.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import <MJRefresh/MJRefresh.h>
#import <MBProgressHUD/MBProgressHUD.h>
#import <AlipaySDK/AlipaySDK.h>
#import "UIFont+runTime.h"
#import "UITextField+LXDAdjust.h"
#import "UITextView+UITextView_LLKAdjust.h"

#define cellScaleTopAndBottom(value) (value/667.0)*[UIScreen mainScreen].bounds.size.height
#define cellScaleLeftAndRight(value) (value/375.0)* [UIScreen mainScreen].bounds.size.width

#define scaleTopAndBottom(value) (value/667.0)*[UIScreen mainScreen].bounds.size.height
#define scaleLeftAndRight(value) (value/375.0)*[UIScreen mainScreen].bounds.size.width


#define ZColorRGBA(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define ZColorRGB(r,g,b) ZColorRGBA(r,g,b,1.0f)


#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]/// rgb颜色转换（16进制->10进制）

#define COLOR_HEX(_hex)         [UIColor colorWithRed:((float)((_hex & 0xFF0000) >> 16)) / 255.0 \
green:((float)((_hex & 0xFF00)>> 8)) / 255.0 \
blue:((float) (_hex & 0xFF)) / 255.0 alpha:1.0f]






#define COLOR_Theme             COLOR_HEX(0x38b3c0)
/*! 警告框-一个按钮【View】 <确定按钮蓝色样式>*/
#define BA_AlertAtView(title,msg) [[[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil] show];
#define WIDTH [UIScreen mainScreen].bounds.size.width

#define HEIGHT [UIScreen mainScreen].bounds.size.height

#define BWScreenWidth        [[UIScreen mainScreen] bounds].size.width
#define BWScreenHeight       [[UIScreen mainScreen] bounds].size.height


#define MXURLScheme          @"ShangHaiAoDing.ShangHaiTuJI"


//正式服务器地址

//#define ServerIp @"http://192.168.3.83"
#define ServerIp @"http://www.tj698.com"
#define PictureIp @"http://file.tj698.com"
//测试服务器地址
//#define ServerIp @"http://test.tj698.com"
//#define PictureIp @"http://test.tj698.com"

#endif /* PrefixHeader_h */
